<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

	<head>
		<title>Error Page</title>
		<%@ include file="/WEB-INF/core/common/top.jsp"%>
		<script type="text/JavaScript">
			<!--
			function MM_preloadImages() { //v3.0
			  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
			}
			
			     function hideBack(){
          	   var backBtnTrObj = document.getElementById("backBtnTr");
          	   if (backBtnTrObj){
	          	   if (history.length<=0) { 
	          	      backBtnTrObj.style.display = "none";
	          	   }else{
	          	      backBtnTrObj.style.display = "";
	          	   }
	          	 }
           	}
           	
           	function viewDetail(){
           	    var detailErrorObj = document.getElementById("detailError");
          	    if (detailErrorObj){
          	        if (detailErrorObj.style.display=="" || detailErrorObj.style.display=="yes"){
          	            detailErrorObj.style.display = "none";
          	        }else{
          	            detailErrorObj.style.display = "";
          	        }
          	    }
           	}
			
			//-->
			</script>
	</head>
	<body
		onload="MM_preloadImages('${ctx}/core/images/button_33_hit.gif','${ctx}/core/images/button_36_hit.gif','${ctx}/core/images/button_32_hit.gif','${base}/core/images/button_25_hit.gif')">

		<table width="100%" height="400" border="0" align="center"
			cellpadding="0" cellspacing="0">
			<tr>
				<td height="100">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td align="center" valign="center">

					<table width="60%" border="0" align="center" cellpadding="3"
						cellspacing="0" class="tabout">
						<tr>
							<td width="240" height="240" rowspan="7" align="center"
								valign="top">
								<img src="${ctx}/core/images/error.gif" alt="" />
							</td>
							<td width="20" rowspan="7">
								&nbsp;
							</td>
							<td height="20"></td>
						</tr>
						<tr>
							<td height="30" align="left">
								<span class="black_biaotiCuer"><s:text
										name="label.systemAlert" /> </span>
							</td>
						</tr>
						<tr>
							<td height="40" align="left" valign="top">
								<font color="red">
									<span class="black_biaoti">
								 		<s:if test="%{#session.GLOBAL_ERROR_INFO_KEY != null}">
											<s:iterator value="#session.GLOBAL_ERROR_INFO_KEY">
												<s:property />
											</s:iterator>
										</s:if>
									</span> 
								</font>
							</td>
						</tr>
						<tr>
							<td height="10"></td>
						</tr>
						<s:if test="%{#session.RE_LOCATION_URL_KEY != null}">

							<tr id="backBtnTr" style="display: ">
								<td height="30" align="left">
									<s:if test="%{#session.GLOBAL_DETAIL_ERROR_INFO_KEY != null}">
										<input type="button" class="btn"
											value='<s:text name="label.viewdetailerror"/>'
											onclick="viewDetail();" />
									</s:if>
									<input type="button" class="btn"
										value=' <s:text name="button.return"/> '
										onclick="window.location.href='#session.RE_LOCATION_URL_KEY'" />
								</td>
							</tr>
						</s:if>
						<s:else>
							<tr id="backBtnTr" style="display: ">
								<td height="30" align="left">
									<s:if test="%{#session.GLOBAL_DETAIL_ERROR_INFO_KEY != null}">
										<input type="button" class="btn"
											value="<s:text name='button.showDetail'/>"
											onclick="viewDetail();" />
									</s:if>
									<!--<input type="button" class="btn" value=' <@s.text name="button.return"/> '  onclick="history.back(-4);">-->
								</td>
							</tr>
						</s:else>
					</table>
					<table id="detailError" width="60%" height="30" border="0"
						cellpadding="0" cellspacing="0">
						<s:if test="%{#session.GLOBAL_DETAIL_ERROR_INFO_KEY != null}">
							<s:iterator value="#session.GLOBAL_DETAIL_ERROR_INFO_KEY">
								<tr style="display: list-item" class="blue">
									<td>
										<s:property />
									</td>
								</tr>
							</s:iterator>
						</s:if>
					</table>
				</td>
			</tr>
		</table>
	</body>
	<%
		com.dmx.fw.web.util.Helper.clearExecuteMsg();
	%>
</html>
